package com.ccys.db.mapper;

import com.ccys.db.entity.TblBookingGrab;
import com.ccys.db.vo.consultation.BookingGrabListVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

/**
 * Created by Mybatis Generator on 2024/01/05
 */
public interface TblBookingGrabMapper extends Mapper<TblBookingGrab>, MySqlMapper<TblBookingGrab> {
    /**
     * 查询最新的一条数据 并且是未删除
     *
     * @param bookingId bookingId
     * @return
     */
    TblBookingGrab findTheLatestOneByBookingId(@Param("bookingId") String bookingId);

    /**
     * 根据bookingId查询快递信息集合
     *
     * @param bookingId bookingId
     * @return
     */
    List<BookingGrabListVo> findGrabListByBookingId(@Param("bookingId") String bookingId);
}